import http from '@/libs/http'

// 订单列表
export const orderListApi = (data) => {
	return http({
		url: `/order/list`,
		data
	})
}
// 订单详情
export const orderDetailApi = (data) => {
	return http({
		url: `/order/order`,
		data
	})
}
// 核销
export const orderWriteOffApi = (data) => {
	return http({
		url: `/order/write_off`,
		data,
		method: 'POST'
	})
}
// 核销记录
export const getOrderWriteOffApi = (data) => {
	return http({
		url: `/order/write_off`,
		data
	})
}
// 下单
export const generateApi = (data) => {
	return http({
		url: `/order/generate`,
		data,
		method: 'POST'
	})
}